package com.xiao.sulingwallet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiao.sulingpublic.utils.PageUtils;
import com.xiao.sulingpublic.utils.R;
import com.xiao.sulingwallet.entity.PurseEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 钱包表
 *
 * @author xiao
 * @email 1322127758@qq.com
 * @date 2022-03-30 17:57:48
 */
public interface PurseService extends IService<PurseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 通过用户号,修改钱包金额
     * @param companyUserName :要从哪个号转出
     * @param userName :要转到这个用户号
     * @param amount :金额
     * @return
     */
    R updateAmount(String companyUserName, String userName, BigDecimal amount) throws Exception;
}

